<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use App\Engine\BaseModel;
use Illuminate\Database\Eloquent\Model;

/**
 * Class TurntableActive
 *
 * @property int $id
 * @property string|null $name
 * @property string|null $icon
 * @property int $type
 * @property int $value
 * @property int $weight
 *
 * @package App\Models
 */
class TurntableActive extends BaseModel
{
	protected $table = 'turntable_actives';
	public $timestamps = false;
	protected $casts = [
		'type' => 'int',
		'value' => 'int',
		'weight' => 'int'
	];
	protected $fillable = [
		'name',
		'icon',
		'type',
		'value',
		'weight',
        'reward'
	];

    public $rule=[
        'name'=>'required',
        'icon'=>'required',
        'type'=>'required',
        'value'=>'required',
        'weight'=>'required',
    ];
    public $ruleMessage=[
        'name.required'=>"请填写名称",
        'icon.required'=>"请上传图片",
        'type.required'=>"请选择类型",
        'value.required'=>"请输入数量",
        'weight.required'=>"请输入权重",
    ];
}
